package com.sea.physical.service.impl;


import com.sea.physical.entity.StockCreateRecord;
import com.sea.physical.mapper.StockCreateRecordMapper;
import com.sea.physical.service.StockCreateRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StockCreateRecordServiceImpl implements StockCreateRecordService {

    @Autowired
    private StockCreateRecordMapper stockCreateRecordMapper;

    @Override
    public int save(StockCreateRecord stockCreateRecord) {
        return stockCreateRecordMapper.insert(stockCreateRecord);
    }

    @Override
    public List<StockCreateRecord> findRecordByCreateId(Integer createId) {
        return stockCreateRecordMapper.findRecordByCreateId(createId);
    }
}
